package com.slz3.business.module.goodsManagement.gooGoods.enums;

import lombok.AllArgsConstructor;

/**
 * 上架状态
 */
@AllArgsConstructor
public enum GooGoodsShelvesFlag {
    ON("已上架"), //2
    OFF("已下架"); //1
    private String nickname;

    public static boolean isNo(GooGoodsShelvesFlag flag) {
        return GooGoodsShelvesFlag.ON.equals(flag);
    }

    public static boolean isOff(GooGoodsShelvesFlag flag) {
        return GooGoodsShelvesFlag.OFF.equals(flag);
    }
}
